import request from '@/utils/request.js'

export function getMemberCart() {
	return request({
		method: 'GET',
		url: '/member/cart'
	})
}
export function delMemberCart(id) {
	return request({
		method: 'DELETE',
		url: '/member/cart',
		data: {
			ids: [...id]
		}
	})
}
export function putMemberCart(data) {
	return request({
		method: 'PUT',
		url: '/member/cart/' + data.skuId,
		data: {
			selected: data.selected,
			count: data.count
		}
	})
}
export function putMemberCartSelected(selected) {
	return request({
		method: 'PUT',
		url: '/member/cart/selected',
		data: {
			selected,
		}
	})
}